package com.lejin.order.service.impl;


import com.lejin.item.entity.CourseOutline;
import com.lejin.order.mapper.CourseInfoMapper;
import com.lejin.order.service.ICourseInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lejin.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author luminghua
 * @since 2022-04-21
 */
@Service
public class CourseInfoServiceImpl extends ServiceImpl<CourseInfoMapper, CourseOutline> implements ICourseInfoService {
    @Autowired
    private CourseInfoMapper courseInfoMapper;
    @Override
    public ResultVO selectCourseInfoById(Integer outlineId) {
        CourseOutline courseOutline = courseInfoMapper.selectById(outlineId);
        return  new ResultVO(true,"查询课程成功！",courseOutline);
    }
}
